<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生</title>

    <script src="js/axios.js"></script>
</head>
<body>
<h1>学生</h1>

<form action="/sports/st-teacher/upload" method="post" enctype="multipart/form-data">
<!--      id:<input type="text" name="sno" ><br>-->
      姓名:<input type="text" name="name" ><br>
<!--      年龄:<input type="text" name="ssex" ><br>-->
      性别:<input type="text" name="sex"><br>
      生日:<input type="file" name="uploadFile"><br>
     <input type="submit" value="提交"><br>

</form>



<input type="button" value="ID查询" onclick="selectBatchIds()">
<input type="button" value="ID删除" onclick="deleteBatchIds()">

<script>
    axios.defaults.method = "post";
    axios.defaults.baseURL = "http://localhost/student";

    function selectBatchIds() {
        axios({
            url:"/selectBatchIds",
           /* params:{
                sname:"小明"
            }*/
           data:[2,3]
        });
    }
    function deleteBatchIds() {
        axios({
            url:"/deleteBatchIds",
            /* params:{
                 sname:"小明"
             }*/
            data:[3]
        });
    }
    function deleteById() {
        axios({
            url:"/deleteById",
            params:{
                sno:1
            }
        });
    }
</script>
</body>
</html>